package com.libra.rabbitmq.config;

import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.libra.rabbitmq.mqcallback.MsgSendConfirmCallBack;

/**
 * RabbitMq配置
 * @author zhuzhe
 * @date 2018/5/25 13:37
 * @email 1529949535@qq.com
 */
@Configuration
public interface  QueueConstants  {

	 /**
     * 消息交换名称
     */
    public static String MESSAGE_EXCHANGE = "message.direct.exchange";
    
    /**消息路由键*/
    public String MESSAGE_ROUTE_KEY = "message.send";
    
    /**消息队列名称 */
    public String MESSAGE_QUEUE_NAME = "message.queue";
    
    /**发布订阅队列和交换机*/
    public String PS_MESSAGE_EXCHANGE = "ps.message.exchange";
    public String PS_ROUTE_KEYA = "message.send.a";
    public String PS_QUEUE_A = "ps.queue.a";
    public String PS_QUEUE_B = "ps.queue.b";
    public String PS_QUEUE_C = "ps.queue.c";
    
}
